package com.anan;

import java.awt.*;

/**
 * @Author: Painter
 * @project_name: aircraft-war
 * @system_login: sunshine
 * @time: 2023/11/520:15
 */



public class Bomb {  // 敌机爆炸图片
    public int x;  // x坐标
    public int y;  // y坐标
    public int type;  // 爆炸的敌机类型
    int index = 0;  // 播放爆炸图片的数组索引
    public Image[] smallEnemyDestroy = {  // 小型敌机爆炸图片数组
            Imagevalue.enemy1_down1,
            Imagevalue.enemy1_down2,
            Imagevalue.enemy1_down3,
            Imagevalue.enemy1_down4};
    public Image[] midEnemyDestroy ={  // 中型敌机爆炸图片数组
            Imagevalue.enemy2_down1,
            Imagevalue.enemy2_down2,
            Imagevalue.enemy2_down3,
            Imagevalue.enemy2_down4};
    public Image[] bigEnemyDestroy = {  // 大型敌机爆炸图片索引
            Imagevalue.enemy3_down1,
            Imagevalue.enemy3_down2,
            Imagevalue.enemy3_down3,
            Imagevalue.enemy3_down4,
            Imagevalue.enemy3_down5,
            Imagevalue.enemy3_down6};

    public Image[] heroEnemyDestroy = {
            Imagevalue.me_destroy1,
            Imagevalue.me_destroy2,
            Imagevalue.me_destroy3,
            Imagevalue.me_destroy4
    };


    public Bomb(int x, int y, int type) {  // 构造函数
        this.x = x;
        this.y = y;
        this.type = type;
    }
}
